SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 49090: MULTILABEL format with identical ranges gives unexpected results in procedures MEANS, SUMMARY, TABULATE, and REPORT

DetailsCodeOutputAboutRate It

Multilabel formats can be applied to procedures that support the summary object, including MEANS, SUMMARY, TABULATE, and REPORT. If PROC FORMAT is used to create a multilabel format and the ranges are identical, incorrect results might be generated. When the ranges are the same, multiple labels are chained together and any distinguishing exclusion indicators are ignored. In the sample below, 15<-100 and 15-100 are considered the same range when they are not.

    proc format;
     value fmtname (multilabel)
      10<-15 = '10-15'
      15<-100 = '16-20'
      15-99 = 'G1'
      15-100 = 'G2';
    run;

The current work-around is to add the NOTSORTED option to the PROC FORMAT step.

    value fmtname (multilabel notsorted)

See the Full Code and Output tabs for sample code and output.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASOpenVMS VAX8.1 TS1M09.4 TS1M0
z/OS8.1 TS1M09.4 TS1M0
OS/28.1 TS1M0
Microsoft Windows 95/988.1 TS1M0
Microsoft Windows 2000 Advanced Server8.1 TS1M0
Microsoft Windows 2000 Datacenter Server8.1 TS1M0
Microsoft Windows 2000 Server8.1 TS1M0
Microsoft Windows 2000 Professional8.1 TS1M0
Microsoft Windows NT Workstation8.1 TS1M0
Microsoft Windows XP Professional8.1 TS1M09.4 TS1M0
Windows Millennium Edition (Me)8.1 TS1M0
ABI+ for Intel Architecture8.1 TS1M09.4 TS1M0
AIX8.1 TS1M09.4 TS1M0
HP-UX8.1 TS1M09.4 TS1M0
IRIX8.1 TS1M09.4 TS1M0
OpenVMS Alpha8.1 TS1M09.4 TS1M0
Solaris8.1 TS1M09.4 TS1M0
Tru64 UNIX8.1 TS1M09.4 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.